home *** CD-ROM | disk | FTP | other *** search
File List | 1991-10-22 | 1.0 KB | 31 lines |
- '
- ' **** Convert ASCII values to a string for the N command chip music.
- ' **** These values corespond to the "n" command.
- '
- Close #7
- Open "O",#7,"a:\N4.IGC" !<<<---change file path to suit.
- ' *** IG's N command Load and execute is N>4,number_of_data_elements,string
- G$="G#N>4,24," !<<---Remember to adjust me, MAX will be 9996.
- Print #7,G$;
- '
- ' *** This for loop is looped to the number of Data elements(same as in
- ' *** the N statement above) it's
- ' *** 6 for each call to the play_note function in the IG terminal
- ' *** play_note(effect_num,voice,volume,pitch,timing,note_off_type);
- '
- For I=1 To 24 ! <<---remember to adjust me, MAX is 9996.
- Read A%
- Print #7,Chr$(A%);
- Next I
- Print #7
- Close #7
- '
- ' **** These data statements correspond to the values in the "n" command
- ' **** imagine the word Data is actually the "n"
- ' **** The example data statements play a 3 note chord for 2 seconds.
- ' **** when the resulting N4.IGC script is read by the IG terminal.
- Data 12,0,15,65,0,0
- Data 12,1,15,67,0,0
- Data 12,2,15,69,200,0
- Data 0,0,0,0,200,3
-